import {createRouter, createWebHistory} from 'vue-router';

const routers = [
    {
        path: '/home',
        name: 'movieHome',
        component: () => import('../views/admin/ZzjMovieHome.vue')
    },
    {
        path: '/hallList',
        name: 'hallList',
        component: () => import('../views/admin/movieHall/ZzjMovieHallList.vue')
    },
    {
        path: '/userList',
        name: 'userList',
        component: () => import('../views/admin/user/ZzjUserList.vue')
    },
    {
        path: '/movieList',
        name: 'movieList',
        component: () => import('../views/admin/movie/ZzjMovieList.vue')
    },
    {
        path: '/sessionList',
        name: 'sessionList',
        component: () => import('../views/admin/movieSession/ZzjMovieSessionList.vue')
    },
    {
        path: '/addSession/:movieId',
        name: 'addSession',
        component: () => import('../views/admin/movieSession/ZzjMovieSessionAdd.vue')
    },
    // {
    //     path: '/hallAdd',
    //     name:'hallAdd',
    //     component:()=>import('../views/admin/ZzjMovieAddEdit.vue')
    // },
    // {
    //     path: '/hallEdit/:hallId',
    //     name:'hallEdit',
    //     component:()=>import('../views/admin/ZzjMovieAddEdit.vue')
    // },

]

const router = createRouter({
    history: createWebHistory('/filmAdmin'),
    routes: routers
})


export default router
